﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace QuanLyKTX.Utilities
{
    static class Validation
    {
        public static bool CheckEmail(string email)
        {
            Regex reg = new Regex(@"(?<name>\S+)@(?<domain>\S+)");
            return reg.IsMatch(email);
        }
        public static bool CheckPhone(string phoneNumber)
        {
            Regex reg = new Regex(@"[^0-9]");
            return reg.IsMatch(phoneNumber);
        }
    }
}
